/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.datatransferobjects;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 *
 * @author Priyanka
 */
public class ModuleDTO implements Serializable{
    
     private String moduleCode = null;
     private String title = null;
     private String description = null;
     private String type = null;
     private String owner = null;
     private int maximumMarks = 0;
     private int weight = 0;
     private int fromRange = -1;
     private int toRange = -1;
     //private List<LecturerDTO> lecturerTeaching;
     private Set<LecturerDTO> lecturerTeaching = null;
     private Set<AssessmentDTO> assessmentList = null;
     private Set<StudentModuleTeamDTO> listOfStudentModule = null;
     
     

     public void addLecturerTeaching(LecturerDTO lecturer){
         this.lecturerTeaching.add(lecturer);
     }
     
    public Set<AssessmentDTO> getAssessmentList() {
        return assessmentList;
    }

    public void setAssessmentList(Set<AssessmentDTO> assessmentList) {
        this.assessmentList = assessmentList;
    }

    public Set<StudentModuleTeamDTO> getListOfStudentModule() {
        return listOfStudentModule;
    }

    public void setListOfStudentModule(Set<StudentModuleTeamDTO> listOfStudentModule) {
        this.listOfStudentModule = listOfStudentModule;
    }

    /*
    public List<LecturerDTO> getLecturerTeaching() {
        return lecturerTeaching;
    }

    public void setLecturerTeaching(List<LecturerDTO> lecturerTeaching) {
        this.lecturerTeaching = lecturerTeaching;
    }
     */
    
    public Set<LecturerDTO> getLecturerTeaching() {
        return lecturerTeaching;
    }

    public void setLecturerTeaching(Set<LecturerDTO> lecturerTeaching) {
        this.lecturerTeaching = lecturerTeaching;
    }
     
     
    public ModuleDTO(){}
    public ModuleDTO(String moduleCode, 
            String title, String description, String type, String owner, int maximumMax,
            int weight, int fromRange, int toRange) {
        this.moduleCode = moduleCode;
        this.title = title;
        this.description = description;
        this.type = type;
        this.owner = owner;
        this.maximumMarks = maximumMax;
        this.weight = weight;
        this.fromRange = fromRange;
        this.toRange = toRange;
    
    }

    

    public String getDescription() {
        return description;
    }

    public int getFromRange() {
        return fromRange;
    }

    public int getMaximumMarks() {
        return maximumMarks;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public String getOwner() {
        return owner;
    }

    public String getTitle() {
        return title;
    }

    public int getToRange() {
        return toRange;
    }

    public String getType() {
        return type;
    }

    public int getWeight() {
        return weight;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setFromRange(int fromRange) {
        this.fromRange = fromRange;
    }

    public void setMaximumMarks(int maximumMax) {
        this.maximumMarks = maximumMax;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setToRange(int toRange) {
        this.toRange = toRange;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
